package com.example.sse;

/**
 * @Author xiaozq
 * @Date 2024/2/21
 * @Description: 消息推送响应体
 */
public class MessageVO<T> {

    // 主题：不同位置推送的内容不同
    private String topic;

    // 推送消息
    private T data;

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getTopic() {
        return topic;
    }

    public T getData() {
        return data;
    }
}
